<template>
  <div>
    <van-nav-bar>
      <template v-slot:title>
        <span class="title">网易云</span>
      </template>
    </van-nav-bar>
    <router-view></router-view>
    <!--    tabbar-->
    <van-tabbar v-model="active">
      <van-tabbar-item to="/home" icon="home-o">首页</van-tabbar-item>
      <van-tabbar-item to="/search" icon="search">搜索</van-tabbar-item>
    </van-tabbar>
  </div>
</template>

<script>
export default {
  name: 'Layout',
  data () {
    return {
      active: 0
    }
  }
}
</script>

<style scoped>
.van-nav-bar {
  background-color: #d43c33;
}

.title {
  color: #fff !important;

}

</style>
